package com.ruoyi.student.service;

import java.util.List;

import com.ruoyi.student.domain.Address;
import com.ruoyi.student.domain.Student;
import com.ruoyi.student.domain.StudentAll;

/**
 * studentOptService接口
 * 
 * @author ruoyi
 * @date 2024-09-19
 */
public interface IStudentService 
{
    /**
     * 查询studentOpt
     * 
     * @param studentId studentOpt主键
     * @return studentOpt
     */
    public Student selectStudentByStudentId(Long studentId);
    Student selectStudentByUserName(String username);
    Student selectStudentByUserId(Long id);
    /**
     * 查询studentOpt列表
     * 
     * @param student studentOpt
     * @return studentOpt集合
     */
    public List<Student> selectStudentList(Student student,Long userId);
    int addStudentAll(StudentAll studentAll);
    /**
     * 新增studentOpt
     * 
     * @param student studentOpt
     * @return 结果
     */
    public int insertStudent(Student student);
    List<Address> getAddress();

    /**
     * 修改studentOpt
     * 
     * @param student studentOpt
     * @return 结果
     */
    public int updateStudent(Student student);

    /**
     * 批量删除studentOpt
     * 
     * @param studentIds 需要删除的studentOpt主键集合
     * @return 结果
     */
    public int deleteStudentByStudentIds(Long[] studentIds);

    /**
     * 删除studentOpt信息
     * 
     * @param studentId studentOpt主键
     * @return 结果
     */
    public int deleteStudentByStudentId(Long studentId);
}
